// IRemoteInterface.aidl
package com.ispring.aidldemo;

import com.ispring.aidldemo.IRemoteInterfaceCallback;
// Declare any non-default types here with import statements

interface IRemoteInterface {
    /**
     * Demonstrates some basic types that you can use as parameters
     * and return values in AIDL.
     */
    //void basicTypes(int anInt, long aLong, boolean aBoolean, float aFloat,
    //        double aDouble, String aString);

    //获取Service运行的进程ID
        int getPid();

        //从Service中获取最新的数据
        int getData();

        //通过向Service中注册回调，可以实现Service主动向客户端推送数据
        void registerCallback(IRemoteInterfaceCallback cb);

        //删除注册的回调
        void unregisterCallback(IRemoteInterfaceCallback cb);
}
